<!--
  Generated template for the ScanDetailPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>盘点结果</ion-title>
  </ion-navbar>

</ion-header>


<ion-content>
  <ion-slides class="slide-title" [slidesPerView]="pageNumber" [pager]="false">
    <ion-slide *ngFor="let slide of slides; let i = index;">
      <div (click)="selTab(i,slide)">
        <span class="slide-title-unit" [ngClass]="{'slide-title-active': selectedIndex == i}">{{slide}}</span>
      </div>
    </ion-slide>
  </ion-slides>

        <ion-row class="grid-header">
          <ion-col col-4>
            存货编号
          </ion-col>
          <ion-col col-4>
              存货名称
            </ion-col>
            <ion-col col-4>
                库位名称
              </ion-col>
        </ion-row>
        <ion-row *ngIf="nores" class="nores"><ion-col col-12>无数据</ion-col></ion-row>
       <ion-list>
      <ion-item *ngFor="let item of items" (tap)="selItem(item)">
        <ion-row>
            <ion-col col-4>
                {{item.sp_scan_det__sp_code}}
            </ion-col>
            <ion-col col-4>
                {{item.sp_scan_det__sp_name}}
              </ion-col>
              <ion-col col-4>
                  {{item.sp_scan_det__stock_name}}
                </ion-col>
          </ion-row>
        <!-- <button ion-button clear item-end>查看</button> -->
      </ion-item>
    </ion-list>

</ion-content>

<div class="point" *ngIf="showBox">
    <div class="pop">
        <ion-card>
          <ion-list>
            <ion-item>
              <ion-label fixed>库存数量</ion-label>
              <ion-input type="text" value="{{curnum|number:'0.1-2'}}" disabled></ion-input>
            </ion-item>
            <ion-item>
              <ion-label fixed>盘点数量</ion-label>
              <ion-input type="text" [(ngModel)]="scannum" placeholder="输入盘点数量"></ion-input>
            </ion-item>
            
            <div class="pop-btns">
                <ion-row>
                  <ion-col col-6>
                      <button ion-button block class="theme-button-bg" (tap)="cancelRes()">
                          取消
                      </button>
                  </ion-col>
                  <ion-col col-6>
                      <button ion-button block class="theme-button-bg" (tap)="confirmRes()">
                          确认
                      </button>
                  </ion-col>
                </ion-row>
            </div>
          </ion-list>
          </ion-card>
    </div>
</div>


<ion-fab right bottom>
    <button ion-fab color="light"><ion-icon name="arrow-dropup"></ion-icon></button>
    <ion-fab-list side="top">
      <button ion-fab (tap)="commit()"><ion-icon name="checkmark"></ion-icon></button>
      <button ion-fab (tap)="scan()"><ion-icon name="barcode"></ion-icon></button>
    </ion-fab-list>
  </ion-fab>


  
